package days5.easy.title58;

/**
 * @Author fengzihao
 * @Date 2024-04-19 21:52
 */
class Solution {
    public int lengthOfLastWord(String s) {
        String[] words = s.split("\\s+");
        return words[words.length-1].length();
    }
}